package com.atguigu.gulimall.product.fallback;

import com.atguigu.common.exception.BizCodeEnume;
import com.atguigu.common.utils.MyColor;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @NAME: SeckillFeignServiceFallBack
 * @USER: wjj
 * @DATE: 2023/12/18
 * @TIME: 19:09
 * @DAY_NAME_FULL: 星期一
 * @PROJECT_NAME: gulimall
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        MyColor.println("SeckillFeignServiceFallBack++");
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(),BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
